import request from '@/utils/http.js'
export const createOrderAPI = (goods:[{skuId:string,count:number}],addressId:string)=>{
    return request({
        url:'/member/order',
        method:'post',
        data:{
            deliveryTimeType:1,
            payType:1,
            payChannel:1,
            buyerMessage:'',
            goods,
            addressId
        }
    })
}

//获取收货地址
export const getAddressAPI = ()=>{
    return request({
        url:'/member/order/pre',
        methods:'get'
    })
}